package com.cai.dao.repository.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cai.dao.mapper.PermissionMapper;
import com.cai.dao.repository.IPermissionRepository;
import com.cai.entity.DO.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Title: IPermissionRepositoryImpl
 * @Author RuoLi
 * @Package com.cai.dao.repository.impl
 * @Date 2024/1/12 11:14
 * @description:
 */
@Repository
public class IPermissionRepositoryImpl extends ServiceImpl<PermissionMapper, Permission> implements IPermissionRepository {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<String> listPermissionsByUserName(String username) {
        return permissionMapper.listPermissionsByUserName(username);
    }
}
